import { createRouter, createWebHashHistory } from 'vue-router'

const routes = [

	{
		path:'/supervisor/historylist',
		name:'supervisorhistorylist',
		component:()=>import('@/views/supervisor/HistoryList')
	},
	{
		path:'/supervisor/selectaqi',
		name:'supervisorselectaqi',
		component:()=>import('@/views/supervisor/SelectAQI')
	},
	{
		path:'/supervisor/selectgrid',
		name:'selectgrid',
		// component:() => import('@/views/supervisor/SelectGrid')
		component: () => import(/* webpackChunkName: "about" */ '../views/supervisor/SelectGrid')

	},
	{
		path:'/supervisor/login',
		name:'supervisorlogin',
		component:()=>import(  '@/views/supervisor/Login')

	},
	{
		path:'/supervisor/register',
		name:'supervisorregister',
		component:()=>import('@/views/supervisor/register'),

	},
	{
		path: '/admin/login',
		name: 'adminlogin',
		component: () => import(/* webpackChunkName: "about" */ '../views/admin/Login')
	},
	{
		path:'/admin/index',
		name:'adminIndex',
		component:()=> import(/* webpackChunkName: "about" */ '@/views/admin/Index'),
		children:[
			{
				path:'/admin/svDataManage/svDataList',
				name:'SvDataList',
				component:()=>import('@/views/admin/svDataManage/SvDataList')
			},
			{
			  path: '/admin/system/dict/index',
			  name: 'dictIndex',
			  // route level code-splitting
			  // this generates a separate chunk (about.[hash].js) for this route
			  // which is lazy-loaded when the route is visited.
			  component: () => import(/* webpackChunkName: "about" */ '../views/admin/system/dict/Index')
			},
			{
			  path: '/admin/system/dictitem/Index',
			  name: 'dictItemIndex',
			  component: () => import(/* webpackChunkName: "about" */ '../views/admin/system/dictitem/Index')
			},
			{
			  path: '/admin/system/dictitem/Index2/:id',
			  name: 'dictItemIndex2',
			  component: () => import(/* webpackChunkName: "about" */ '../views/admin/system/dictitem/Index2')
			},
			{
				path:'/admin/svDataManage/verifyDataList',
				name:'verifyDataList',
				component:()=>import('@/views/admin/svDataManage/VerifyAqiDataList')
			},
			{
				path:'/admin/svDataManage/nextstep/designate',
				name:'nextstepdesignate',
				component:()=>import('@/views/admin/svDataManage/nextstep/Designate')
			},
			{
				path:'/admin/svDataManage/nextstep/detailed',
				name:'nextstepdetailed',
				component:()=>import('@/views/admin/svDataManage/nextstep/Detailed')
			},
			{
				path:'/admin/svDataManage/verifyAqiDataList',
				name:'verifyAqiDataList',
				component:()=>import('@/views/admin/svDataManage/VerifyAqiDataList')
			},
			{
				path:'/admin/svDataManage/verifyaqi/detailedaqi',
				name:'detailedaqi',
				component:()=>import('@/views/admin/svDataManage/verifyAQI/DetailedAQI')
			},
			{
				path:'/admin/stcDataManage/groupByProvince',
				name:'groupbyprovince',
				component:()=>import('@/views/admin/stcDataManage/groupByProvince/GroupByProvince')
			},
			{
				path:'/admin/stcDataManage/aqiDistribution',
				name:'aqidistribution',
				component:()=>import('@/views/admin/stcDataManage/aqiDistribution/AqiDistribution')
			},
			{
				path:'/admin/stcDataManage/aqiTrend',
				name:'aqitrend',
				component:()=>import('@/views/admin/stcDataManage/aqiTrend/AqiTrend')
			},
			{
				path:'/admin/stcDataManage/otherData',
				name:'otherData',
				component:()=>import('@/views/admin/stcDataManage/otherData/OtherData')
			},
		]
	},
    {
        path: '/Grider/TaskList',
        name: 'TaskList',
        component: ()=>import(  '@/views/Grider/TaskList')
    },
    {
        path:'/Grider/Login',
        name:'griderlogin',
        component:()=>import(  '@/views/Grider/Login')

    },
    {
        path:'/Grider/Check',
        name:'gridercheck',
        component:()=>import(  '@/views/Grider/Check')

    },
{
	path:'/Grider/1',
	name:'111',
	component:()=>import('@/views/Grider/1'),

},
{
	path:'/Grider/test',
	name:'123',
	component:()=>import('@/views/Grider/test'),

}

]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
